export default {
	upToken(state, token) {
		// uni.setStorage({
		// 	key: 'token',
		// 	data: token
		// })
		uni.setStorageSync('token', token)
		state.token = token
	},
	setStatusBarHeight(state, value) {
		state.statusBarHeight = value
	},
	setNavigationBarHeight(state, value) {
		state.navigationBarHeight = value
	},
	setPlatform(state, value) {
		state.platform = value
	},
	setSafeAreaInsetsBottom(state, value) {
		state.safeAreaInsetsBottom = value
	},
	setWxMenuButtonWidth(state, value) {
		state.wxMenuButtonWidth = value
	},
	upUserInfo(state, value) {
		state.userInfo = value
		uni.setStorageSync('userId', value.id) //存储分享id
	},
	upIndexInfo(state, value) {
		state.IndexInfo = value
	},
	upChooseType(state, value) {
		state.chooseType = value
	},
	upSuccessPay: (state, value) => {
		state.successPay = value
	},
	upCurrentCity: (state, value) => {
		state.currentCity = value
	},
	upUserList(state, value) {
		state.usersData = value
	},
	setAreaId(state, value) {
		state.areaId = value
		// console.log("储层areaId",value)
		uni.setStorageSync('areaId', value)
	},
	upRefreshFlag: (state, value) => {
		state.refreshFlag = value
	},
	upTipsFlag(state, value) {
		console.log("改变登录弹窗状态", value)
		state.tips_flag = value
	},
	upConnectFlag(state, value) {
		state.connect_flag = value
	},
	upLastInformation(state, value) {
		state.lastInformation = value
	},
	upUnreadCount(state, value) {
		state.unreadCount = value
	},

}